--channel answer event hook
--author huronuan@hongboict.com

freeswitch.consoleLog("info","channel answer !\n")

local api = freeswitch.API()
local uuid = event:getHeader("variable_uuid")
local reocrd_path = "/usr/local/freeswitch/recordings/"
api:executeString("uuid_record "..uuid.." start "..reocrd_path .. uuid .. ".wav")